using System;

namespace Catastrophe.AutoSulution.TaskM
{
	public class ScheduleAttribute : Attribute
	{
		/// <summary>
		/// 方法执行索引
		/// </summary>
		public ushort Index { get; set; }

		/// <summary>
		/// 功能描述
		/// </summary>
		public string Describe { get; set; }

		/// <summary>
		/// 未完成任务的超时时间-1使用默认时间
		/// </summary>
		public int TimeOut { get; set; } = -1;


		/// <summary>
		/// 忽略当前步骤
		/// </summary>
		public bool Ignore { get; set; }

		/// <summary>
		/// 任务条件信息显示模式
		/// </summary>
		public TaskConditionShowModeEnum ComditonShowMode { get; set; } = TaskConditionShowModeEnum.SuperToolTip;


		/// <summary>
		/// 任务条件显示格式
		/// </summary>
		public TaskConditionShowFormatEnum ComditonShowFormat { get; set; } = TaskConditionShowFormatEnum.FailedInfo;


		public ScheduleAttribute(ushort index, string describe)
		{
			this.Index = index;
			this.Describe = describe;
		}
	}
}
